<?php
	include_once '../../sys/com/model/db/SupplierBrandDAO.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/contant.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>商品目錄</title>

<?php include_once './template/CssAndJs.html';?>
<script language="javascript" src="./js/jquery.tablePagination.0.2.min.js"></script>
<script src="./js/category.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/productDetail.js" type="text/javascript"></script>
<script src="./js/productRankDetail.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/index.js" charset="UTF-8" type="text/javascript"></script>
</head>

<body>
<table width="1024" border="0" align="center" cellpadding="0" cellspacing="0">
  <?php include_once './template/header.php';?>
      <tr>
        <td align="center">
          <div id="member_contant">
            <div id="container_left">
              <table border="0" cellspacing="0" cellpadding="0">
                <?php include_once './template/category.php';?>
                <tr>
                  <td height="10"></td>
                </tr>
                <tr>
                  <td align="center">
                  <table border="0" cellspacing="0" cellpadding="0">
                      <tr background="../../images/好康優惠_01.png">
                        <td width="180" height="82" background="../../images/goodd_01.png"><table border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="131" height="42"></td>
                              <td width="43"></td>
                            </tr>
                            <tr>
                              <td></td>
                              <td><a href="#"><img src="../../images/goodd_more.png" width="31" height="9" border="0" /></a></td>
                            </tr>
                        </table></td>
                      </tr>
                      <tr>
                        <td width="180" height="231" valign="top" background="../../images/goodd_02.png"><table border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr>
                              <td height="71" align="center"><table width="162" border="0" align="center" cellpadding="0" cellspacing="0">
                                  <tr>
                                    <td width="75"><img src="" id="src1" alt="類別縮圖" width="75" height="71" style="background-color: #FF0000" /></td>
                                    <td width="81"><table border="0" align="center" cellpadding="0" cellspacing="0">
                                        <tr>
                                          <td width="80" align="left"><a href="#" id="url1" class="style59"></a></td>
                                        </tr>
                                        <tr>
                                          <td align="left"><span id="price1" class="style32"></span></td>
                                        </tr>
                                    </table></td>
                                  </tr>
                              </table></td>
                            </tr>
                            <tr>
                              <td><img src="../../images/goodd_04.png" width="168" height="9" /></td>
                            </tr>
                            <tr>
                              <td height="71"><table width="162" border="0" align="center" cellpadding="0" cellspacing="0">
                                  <tr>
                                    <td width="75"><img src="" id="src2" alt="類別縮圖" width="75" height="71" style="background-color: #FF0000" /></td>
                                    <td width="81"><table border="0" align="center" cellpadding="0" cellspacing="0">
                                        <tr>
                                          <td width="80" align="left"><a href="#" id="url2" class="style59"></a></td>
                                        </tr>
                                        <tr>
                                          <td align="left"><span id="price2" class="style32"></span></td>
                                        </tr>
                                    </table></td>
                                  </tr>
                              </table></td>
                            </tr>
                            <tr>
                              <td><img src="../../images/goodd_04.png" width="168" height="9" /></td>
                            </tr>
                            <tr>
                              <td height="71"><table width="162" border="0" align="center" cellpadding="0" cellspacing="0">
                                  <tr>
                                    <td width="75"><img src="" id="src3" alt="類別縮圖" width="75" height="71" align="top" style="background-color: #FF0000" /></td>
                                    <td width="81"><table border="0" align="center" cellpadding="0" cellspacing="0">
                                        <tr>
                                          <td width="80" align="left"><a href="#" id="url3" class="style59"></a></td>
                                        </tr>
                                        <tr>
                                          <td align="left"><span id="price3" class="style32"></span></a></td>
                                        </tr>
                                    </table></td>
                                  </tr>
                              </table></td>
                            </tr>
                        </table></td>
                      </tr>
                      <tr>
                        <td><img src="../../images/goodd_03.png" width="180" height="11" /></td>
                      </tr>
                  </table></td>
                </tr>
                <tr>
                  <td height="10"></td>
                </tr>
                <?php 
                        $supplierBrandDAO = new SupplierBrandDAO();
                        $result = $supplierBrandDAO->queryByAll();
                        
                        if(count($result)>0){
                    ?>
                <tr>
                  <td align="center"><table border="0" cellspacing="0" cellpadding="0">
                      <tr >
                        <td width="180" height="42" background="../../images/Brand_Street_title.png"></td>
                      </tr>
                      <tr>
                          <td width="180" background="../../images/Brand_Street_in.png"><table width="178" border="0" align="center" cellpadding="0" cellspacing="0">
                          <?php 
							$count = count($result)/2;
	                        if(is_float($count)){ //若有小數位則加1
	                        	$count = (int)($count)+1;
	                        }
	                        $picFront = "/shopping/shopcarda2/admin/supplier/admin_supplier_brand/images/";
	                        $index = 0;
	                        for($i=0; $i<$count; $i++){
	                        	$pic0 = $picFront."spacer.gif";
	                        	$alt0 = "";
	                        	if($index<count($result)){
	                        		if(!is_null($result[$index]->{"pic"})){
	                        			$pic0 = $picFront.$result[$index]->{"pic"};
	                        		}
	                        		$alt0 = $result[$index]->{"logo_name"};
	                        		$index++;
	                        	}
	                        	$pic1 = $picFront."spacer.gif";
	                        	$alt1 = "";
	                        	if($index<count($result)){
	                        		if(!is_null($result[$index]->{"pic"})){
	                        			$pic1 = $picFront.$result[$index]->{"pic"};
	                        		}
	                        		$alt1 = $result[$index]->{"logo_name"};
	                        		$index++;
	                        	}
                          ?>
                            <tr>
                              <td width="88" height="45" align="center" valign="middle"><img src="<?php echo $pic0?>" width="88" height="44" alt="<?php echo $alt0?>" style="background-color: #FF0000" /></td>
                              <td width="88" align="center" valign="middle"><img src="<?php echo $pic1?>" width="88" height="44" alt="<?php echo $alt1?>" style="background-color: #FF0000" /></td>
                            </tr>
                          <?php }?>
                          </table></td>
                        </tr>
                      <tr>
                        <td><img src="../../images/Brand_Street_end.png" width="180" height="4" /></td>
                      </tr>
                  </table></td>
                </tr>
                <?php }?>
                <tr>
                  <td height="10"></td>
                </tr>
                <tr>
                  <td align="center"><table width="180" border="0" align="center" cellpadding="0" cellspacing="0" background="../../Second_index/images/CustomerService_bg.png">
                    <tr>
                      <td width="180" height="197" valign="top"><table width="180" height="196" border="0" cellpadding="0" cellspacing="0">
                          <tr>
                            <td height="71">&nbsp;</td>
                          </tr>
                          <tr>
                            <td height="19" align="center"><table width="165" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                  <td width="50" align="center" class="style58"><span><a href="#" class="style58">線上客服</a></span></td>
                                  <td class="style58"></td>
                                  <td width="50" align="center"><a href="#" class="style58">A/S查詢</a></td>
                                  <td class="style58"></td>
                                  <td width="50" align="center"><a href="#" class="style58">其它問題</a></td>
                                </tr>
                            </table></td>
                          </tr>
                          <tr>
                            <td height="35" align="center"><span class="style61">02 ) 2275-3588</span></td>
                          </tr>
                          <tr>
                            <td height="29"><table width="180" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                  <td width="39" height="25"></td>
                                  <td width="53" align="center"><span class="style68">10:30</span></td>
                                  <td width="34"></td>
                                  <td width="54" align="center"><span class="style68">19:00</span></td>
                                </tr>
                            </table></td>
                          </tr>
                          <tr>
                            <td align="center"><span class="style70">逢六、日與例假日暫停服務</span></td>
                          </tr>
                      </table></td>
                    </tr>
                  </table></td>
                </tr>
                <tr>
                  <td height="10"></td>
                </tr>
              </table>
            </div>
            <!-- InstanceBeginEditable name="EditRegion2" -->
            <div id="container_right">
              <div id="contant_up">
                <div align="left">
                <img src="../../member/img/member_dot.jpg" width="12" height="13" />
                <span class="style4">　您的位置：首頁 &gt;</span><sapn class="style4" id="poisition">生活用品專區 &gt;日常用品</sapn>
                </div>
              </div>
              <div id="contant_1"></div>
              <div id="contant_2">
                <div id="contant_2_up"></div>
                <div id="contant_2_down">
                 
                  <sapn id='productRankDetail'></sapn>
                  
                  
                </div>
              </div>
              <div id="contant_3">
                <div id="contant_3_1"></div>
                <div id="contant_3_2">
                  <table width="765" cellspacing="0" cellpadding="0">
                    <tr>
                      <td align="right"><table cellspacing="0" cellpadding="0">
                        <tr>
                          <td></td>
                          <td width="5">&nbsp;</td>
                          <td></td>
                          <td width="5">&nbsp;</td>
                          <td></td>
                          </tr>
                      </table></td>
                    </tr>
                  </table>
                </div>
                
                <?php include_once './template/ProductDetail.php';?>
                
                </div>
            </div>
            <!-- InstanceEndEditable --></div>
        </td>
      </tr>
      <tr>
        <td width="1024" height="118"><table width="955" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="230" height="118" align="center"><a href="../../index.html"><img name="" width="200" height="66" alt="logo位置" style="background-color: #FF0000" /></a></td>
            <td width="10" align="center"><img src="../../images/end_Separateline1.png" width="1" height="80" /></td>
            <td width="715" valign="middle"><table width="715" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="40" align="left" valign="top"><div align="center">
                  <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="50" align="center" class="style2"></td>
                        <td align="center" class="style2"><span class="style2"><a href="#" class="style2">公司簡介</a></span></td>
                        <td width="20" align="center" class="style2"><img src="../../images/end_Separateline2.png" width="1" height="11" /></td>
                        <td align="center" class="style2"><a href="#" class="style2">平台政策與規範</a></td>
                        <td width="20" align="center" class="style2"><img src="../../images/end_Separateline2.png" alt="" width="1" height="11" /></td>
                        <td align="center" class="style2"><a href="#" class="style2">網路交易安全</a></td>
                        <td width="20" align="center" class="style2"><img src="../../images/end_Separateline2.png" alt="" width="1" height="11" /></td>
                        <td align="center" class="style2"><a href="#" class="style2">智財侵權檢舉</a></td>
                        <td width="20" align="center" class="style2"><img src="../../images/end_Separateline2.png" alt="" width="1" height="11" /></td>
                        <td align="center" class="style2"><a href="#" class="style2">違規事件通報</a></td>
                        <td width="20" align="center" class="style2"><img src="../../images/end_Separateline2.png" alt="" width="1" height="11" /></td>
                        <td align="center" class="style2"><a href="#" class="style2">服務中心</a></td>
                      </tr>
                  </table>
                </div></td>
              </tr>
              <tr>
                <td height="40" valign="top" class="style2"><table border="0" cellpadding="0" cellspacing="0">
                  <tr>
                  <td width="50" align="center" class="style2"></td>
                    <td><span class="style2">本平台中台灣各店家所銷售的商品或服務，都是由各該店家所銷售或提供。 | 電話 : 02-2275-3588 | 傳真 : 02-2275-3788<br/>
微衡科技　版權所有 ⓒ 2011 Microbalance. All Rights Reserved.</span></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
<!-- InstanceEnd --></html>
